cmake_minimum_required(VERSION 3.16)

set(PRJNAME hello_ext)
project(${PRJNAME})

find_package(Python3 COMPONENTS Development)
#message("Python3_EXECUTABLE = " ${Python3_EXECUTABLE})
message("Python3_LIBRARY = " ${Python3_LIBRARY})
message("Python3_INCLUDE_DIRS = " ${Python3_INCLUDE_DIRS})


include_directories(${Python3_INCLUDE_DIRS})

#Python3_add_library
Python3_add_library(${PRJNAME} SHARED HelloWorld.cpp)
target_link_libraries(${PRJNAME} PRIVATE ${Python3_LIBRARY})
